package po.framepo;


import java.io.Serializable;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

import Enum.*;

public class Frame implements Serializable {
	private Module module;
	private CourseNecessity courseNecessity;
	private String courseClassification;
	private String courseName;
	private int credit;
	private int term;

	public Frame(String name, int c, int te, CourseNecessity courseNecessity,
			String courseClassification, Module module) throws RemoteException {
		this.courseClassification = courseClassification;
		this.courseNecessity = courseNecessity;
		this.module = module;
		courseName = name;
		credit = c;
		term = te;
	}

	public Frame() throws RemoteException {
		// TODO Auto-generated constructor stub

	}

	public void setCourseName(String courseName) throws RemoteException {
		this.courseName = courseName;
	}

	public void setCredit(int Credit) throws RemoteException {
		this.credit = credit;
	}

	public void setTerm(int term) throws RemoteException {
		this.term = term;
	}

	public void setModule(Module module) throws RemoteException{
		this.module = module;
	}

	public void setNecessity(CourseNecessity courseNecessity) throws RemoteException{
		this.courseNecessity = courseNecessity;
	}

	public void setClassification(String CourseClassification)throws RemoteException {
		this.courseClassification = courseClassification;
	}

	public String getClassification() throws RemoteException{
		return this.courseClassification;
	}
	
	public Module getModule()throws RemoteException {
		return this.module;
	}
	
	public CourseNecessity geCourseNecessity() throws RemoteException{
		return this.courseNecessity;
	}
	
	public String getCourseName() throws RemoteException {
		return courseName;
	}

	public int getCredit() throws RemoteException {
		return credit;
	}

	public int getTerm() throws RemoteException {
		return term;
	}
}